﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="WeiXinPF.Web.weixin.vote.list" %>

<!DOCTYPE html>

<head runat="server">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>发起投票</title>
  <script type="text/javascript" src="../../scripts/jquery/jquery-1.10.2.min.js"></script>
  <script type="text/javascript" src="../../scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
  <script type="text/javascript" src="../../admin/js/layout.js"></script>
  <link href="../../admin/skin/default/style.css" rel="stylesheet" type="text/css" />
  <link href="../../admin/skin/mystyle.css" rel="stylesheet" type="text/css" />
  <link href="../../css/pagination.css" rel="stylesheet" type="text/css" />

  <script type="text/javascript">
    function parentToIndex(id) {
      parent.location.href = "/admin/Index.aspx?id=" + id;
    }

    $(function () {
    });

  </script>

  <style>
    a.shenghe {
      color: red;
    }
  </style>

</head>
<body class="mainbody">
  <form id="form1" runat="server">
    <div class="location">
      <a href="javascript:;" class="home"><i></i><span>投票</span></a>
    </div>
    <asp:Repeater ID="rptList" runat="server">
      <HeaderTemplate>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
          <thead>
            <tr>
              <th>选择</th>
              <th>标题</th>
              <th>类型</th>
              <th>开始时间/结束时间</th>
              <th>外链代码</th>
            </tr>
          </thead>
          <tbody class="ltbody">
      </HeaderTemplate>
      <ItemTemplate>
        <tr class="td_c">
          <td>
            <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;" />
            <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
          </td>
          <td>
            <%# Eval("title") %>
          </td>
          <td>
            <%# Eval("voteType").ToString().ToLower()=="1"?"文字投票":"图片投票"  %>
          </td>
          <td>
            <%# Eval("beginTime") %><br />
            <%# Eval("endTime") %>            
          </td>
          <td>
            <a href="<%=yuming%>/weixin/vote/index.aspx?wid=<%=wid %>&aid=<%#Eval("id") %>">投票</a>
          </td>
        </tr>
      </ItemTemplate>
      <FooterTemplate>
        <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"7\">暂无记录</td></tr>" : ""%>
                 </tbody>
                </table>
      </FooterTemplate>
    </asp:Repeater>

    <!--/列表-->

    <!--内容底部-->
    <div class="line20"></div>
    <div class="pagelist">
      <div class="l-btns">
        <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
      </div>
      <div id="PageContent" runat="server" class="default"></div>
    </div>
    <!--/内容底部-->
  </form>
</body>
</html>